
public class Hitzordua extends Objetua{
	
	private String nan;
	private String terapeutaNan;
	private String data;
	private String ordua;
	private String terapia;
	
	public Hitzordua(String nan, String terapeuta, String data, String ordua, String terapia){
		this.nan = nan;
		terapeutaNan = terapeuta;
		this.data = data;
		this.ordua = ordua;
		this.terapia = terapia;
	}

	public String getNan() {
		return nan;
	}

	public void setNan(String nan) {
		this.nan = nan;
	}

	public String getTerapeutaNan() {
		return terapeutaNan;
	}

	public void setTerapeutaNan(String terapeutaNan) {
		this.terapeutaNan = terapeutaNan;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public String getOrdua() {
		return ordua;
	}

	public void setOrdua(String ordua) {
		this.ordua = ordua;
	}
	
	public String getTerapia(){
		return terapia;
	}
	
	public void setTerapia(String espezialitatea){
		this.terapia = espezialitatea;
	}

		public Object elementAt(int col) {
		switch(col) {
		 case 0: 
		     return data;
		    
		 case 1: 
		     return ordua;
		     
		 case 2: 
		     return nan;
		     
		 case 3: 
		     return terapeutaNan;
		 case 4: 
		     return terapia;
			 
		 default: 
		     return null;
		    
		 }
	}

	public void setElementAt(Object value, int col) {
		switch(col) {
		 case 0: 
			 this.data = (String) value;
		    
		 case 1: 
			this.ordua = (String) value;
		     
		 case 2: 
			 this.nan = (String) value;
		     
		 case 3: 
			 this.terapeutaNan = (String) value;
			 
		 default: 
		     break;
		    
		 }
		
	}
	

}
